home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / stripcr.arc / STRIPCR.DOC < prev   
Text File  |  1987-12-23  |  4KB  |  96 lines

  1.  
  2.                         STRIPCR   Version 1.0  12-20-87
  3.  
  4.  
  5. PURPOSE:        Strips all carriage returns/linefeeds(cr/lf) out of text 
  6.                 except those at the end of a paragraph.  The resulting 
  7.                 paragraph will be contained on 1 line regardless of how 
  8.                 many lines it originally had. 
  9.  
  10. APPLICATION:    Certain word processors such as MicroSoft WORD only use a 
  11.                 cr/lf at the end of a paragraph.  Since most word 
  12.                 processors and editors insert a cr/lf at the end of each 
  13.                 line of text, some means is needed to convert a normal 
  14.                 ASCII file to the WORD format.  STRIPCR is a conversion 
  15.                 program that does this.  
  16.  
  17. SYNTAX:
  18.  
  19.                 STRIPCR SOURCE_FILE   /U /L /F /E /H /+N 
  20.  
  21.                 New file will be created with extension ".NEW" 
  22.  
  23.                 Switches shown are optional & mean:  
  24.                 /U   convert letters to Upper case 
  25.                 /L   convert letters to Lower case
  26.                 /F   delete any Form feeds
  27.                 /E   delete Extended characters > Ascii 127
  28.                 /H   strip WordStar High bits
  29.                 /+N  max allowed blank lines between paragraphs where N = 1 TO 9
  30.  
  31. Enclose a block of text with tildes '~' to preserve carriage return/linefeeds.
  32.  
  33.  
  34. COMMENTS:
  35.  
  36.     1.  Typing STRIPCR by itself will display a help screen.
  37.  
  38.     2.  At least one blank line is needed at the end of each paragraph so 
  39.         STRIPCR can determine that a paragraph has ended.
  40.  
  41.     3.  All cr/lf's can be preserved for certain parts of a text file.  For 
  42.         example, this could be used to preserve the layout of a table 
  43.         of numbers.   Inserting a tilde character '~' in the source 
  44.         file to be converted, will alternately toggle on and off the 
  45.         carriage return stripping process.  Hence, to preserve a table 
  46.         of numbers, enclose that table with tildes prior to running 
  47.         STRIPCR.  The tildes will not be printed in the converted file.  
  48.         See example below: 
  49.  
  50.                 This text will have all its carriage returns and 
  51.                 linefeeds removed, except for those at the end of 
  52.                 each paragraph.  Since we want to preserve the 
  53.                 layout of the following table, enclose it with 
  54.                 tildes. 
  55.  
  56.                 ~
  57.                         Age     Weight
  58.                         10      100
  59.                         20      200
  60.                 ~
  61.  
  62.                 Next paragraph to convert starts here.
  63.  
  64.     4.  All characters less than ASCII 31 will be deleted from the 
  65.         converted file.  Exceptions are the required carriage returns, 
  66.         linefeeds and formfeeds.
  67.  
  68.     5.  Whenever the program can detect an end of a sentence, it will 
  69.         place two blanks after a period.  The end of a sentence is 
  70.         detected by finding a period followed by a blank or a carriage 
  71.         return.  If the period is embedded in text as in a number (ie, 
  72.         3.1), no extra blanks will be added. 
  73.  
  74.     6.  Extraneous trailing blanks at the end of a line in the original
  75.         file will be removed. 
  76.  
  77.     7.  Tabs will automatically be expanded into spaces.  It assumes 8
  78.         spaces per tab.
  79.  
  80.  
  81. OTHER:
  82.         Author:           John Gasal
  83.         Written in:       Assembly Language
  84.         Max file size:    No limit
  85.         Cost:             None for either the Program or source code
  86.  
  87.         If you have comments on this program or would like to have the 
  88.         source code, please contact me via PC Library BBS (612-435-2554) 
  89.         or write me (include self addressed stamped envelope) at: 
  90.  
  91.                           John Gasal
  92.                           1110 Blackoaks Ct
  93.                           Anoka, Mn 55303
  94.  
  95.                              [end]
  96.